package com.onec.service.route.service.base;


import com.onec.service.api.dto.response.route.RouteResp;
import com.onec.service.api.enums.error.RouteErrorEnum;
import org.springframework.stereotype.Service;


/**
 * 机构接口返回基类：
 *
 * @author onec
 */
@Service
public class BaseMerchantRouteRiskServiceImpl implements RouteRiskService {
    /**
     * @param routeErrorEnum
     * @return AgentInfoResp
     */
    protected RouteResp respErrorMerchant(RouteErrorEnum routeErrorEnum) {
        RouteResp routeResp = new RouteResp();
        routeResp.setCode(routeErrorEnum.getCode());
        routeResp.setMessage(routeErrorEnum.getMessage());
        return routeResp;
    }

    /**
     * @param
     * @param
     * @return AgentInfoResp
     */
    protected RouteResp respMerchantRisk() {
//        RouteResp routeResp = respErrorMerchant(RouteErrorEnum.SUCCESS);
//        routeResp.setContacts(merchantInfo.getContacts());
//        routeResp.setCreateTime(DateUtil.formatTime(merchantInfo.getCreateTime()));
//        routeResp.setUpdateTime(DateUtil.formatDateTime(merchantInfo.getUpdateTime()));
//        routeResp.setName(merchantInfo.getName());
//        routeResp.setMerchantCode(merchantInfo.getCode());
//        routeResp.setPhone(merchantInfo.getPhone());
//
//        routeResp.setRate(merchantBusiness.getMerchantRate());
//        routeResp.setFee(merchantBusiness.getMerchantFee());
//        routeResp.setProduct(merchantBusiness.getProduct().name());
//        routeResp.setBusinessNo(merchantBusiness.getBusinessNo());
//        return routeResp;
        return null;
    }
}
